<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/css/pagination.css">
<link rel="stylesheet" type="text/css" href="/static/css/boxImg.css">
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>进件审核</title>
<style type="text/css">
	table{border-color:#ccc;background-color:#f4f4f4;}
	th{border:1px solid #ccc;}
	td{border:1px solid #ccc;height:32px;line-height:32px;font-size:13px;}
	.left td{padding-left:5%;}
	.center{text-align:center !important;}
	.jump-ipt{float:left;width:20px;height:20px;margin:0 5px;border:1px solid #ebebeb;text-align:center;}
	.m-style{width:440px;height:50px;margin:10px auto;}
	.jump-btn{width:30px !important;font-size:12px !important;}
	/*#callDetail tbody td{height:14px;line-height:14px;}*/
</style>
</head>
<body>
<div class="page-container">
	<input type="hidden" name="user_id" value="{$user_id}">
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl">
				<span>借款人信息</span>
				<span>通话记录</span>
				<span>风控大数据</span>
				<span>运营商报告</span>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>个人信息</caption>
					<div>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">姓名：</td>
									<td>{$userinfo.name}</td>
								</tr>
								<tr>
									<td>身份证号：</td>
									<td>{$userinfo.idcard}</td>
								</tr>
								<tr>
									<td>家庭住址：</td>
									<td>{$userinfo.address}{$userinfo.address_detail}</td>
								</tr>
								<tr>
									<td>工作地址：</td>
									<td>{$userinfo.company_address}</td>
								</tr>
								<tr>
									<td>微信：</td>
									<td>{$userinfo.wechat}</td>
								</tr>
								<tr>
									<td>邮箱：</td>
									<td>{$userinfo.email}</td>
								</tr>
								<tr>
									<td>直系亲属：</td>
									<td><span>{$userinfo.relatives}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.relatives_phone}</span></td>
								</tr>
								<tr>
									<td>紧急联系人：</td>
									<td><span>{$userinfo.emer_con}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.emer_con_phone}</span></td>
								</tr>
							</tbody>
						</table>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">性别：</td>
									<td><?php if($yysreports==1){ ?><?php if($userBasic){ ?>{$userBasic->gender}<?php } ?><?php } ?></td>
								</tr>
								<tr>
									<td>手机号：</td>
									<td>{$userinfo.phone}</td>
								</tr>
								<tr>
									<td>单位名称：</td>
									<td>{$userinfo.company_name}</td>
								</tr>
								<tr>
									<td>行业：</td>
									<td>{$userinfo.industry}</td>
								</tr>
								<tr>
									<td>工作时间：</td>
									<td>{$userinfo.work_age}</td>
								</tr>
								<tr>
									<td>QQ：</td>
									<td>{$userinfo.qq}</td>
								</tr>
								<tr>
									<td>同事：</td>
									<td><span>{$userinfo.partner}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.partner_phone}</span></td>
								</tr>
								<tr>
									<td>朋友：</td>
									<td><span>{$userinfo.friend}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.friend_phone}</span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>银行卡信息</caption>
					<div>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">银行卡号：</td>
									<td>{$userinfo.bank_number}</td>
								</tr>
								<tr>
									<td>开户行：</td>
									<td>{$userinfo.bank_bank}</td>
								</tr>
							</tbody>
						</table>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">预留手机号：</td>
									<td>{$userinfo.bank_phone}</td>
								</tr>
								<tr>
									<td>签约状况：</td>
									<td>{if $userinfo.bank_phone}已签约{/if}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>借款记录</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">工单编号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">产品信息</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">借款金额</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">期数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">商户</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">时间</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">状态</th>
							</tr>
						</thead>
						<tbody>
							{if !empty($orders)}
							{foreach $orders as $key=>$value }
							<tr>
								<td>{$value.order_no}</td>
								<td>{$value.moneyf}~{$value.moneyt}</td>
								<td>{$value.money}</td>
								<td>{$value.cycle}</td>
								<td>{$value.cname}</td>
								<td>{:date('Y-m-d H:i:s',$value.addtime)}</td>
								<td>{if $value.state==1}待审{elseif $value.state==3}待确认{elseif $value.state==5}撤回{elseif $value.state==7}拒绝{elseif $value.state==9}放弃{elseif $value.state==11}待放款{elseif $value.state==17}还款中{elseif $value.state==19}逾期{elseif $value.state==21}已完成{/if}</td>
							</tr>
      						{/foreach}
							{/if}
						</tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>照片</caption>
					<div>
						<div style="float:left;width:30%;">
							{if $userinfo.idcard_img}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.idcard_img}">
							{/if}
						</div>
						<div style="float:left;width:30%;margin-left:5%;">
							{if $userinfo.idcard_imgback}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.idcard_imgback}">
							{/if}
						</div>
						<div style="float:left;width:30%;margin-left:5%;">
							{if $userinfo.img}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.img}">
							{/if}
						</div>
					</div>
				</div>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>运营商呼入呼出信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">直系亲属:<span style="background-color:#5eb95e;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">紧急联系人:<span style="background-color:#ffeab9;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">同事:<span style="background-color:#6db3e3;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">朋友:<span style="background-color:#009393;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>
					</caption>
					<div>
	                    <table style="float:left;width:44%;" class="center" id="oten">
	                        <caption>呼出前十</caption>
	                        <thead style="background-color:#f9f9f9;">
	                            <tr>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">电话</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录姓名</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        </tbody>
	                    </table>           
	                    <table style="float:right;width:44%;" class="center" id="eten">
	                        <caption>呼入前十</caption>
	                        <thead style="background-color:#f9f9f9;">
	                            <tr>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">电话</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录姓名</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        </tbody>
	                    </table>  
                    </div>
				</div>
				<div class="row cl">
					<caption>运营商归属地信息</caption>
					<div>
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话号码数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话时长（秒）</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫时长（秒）</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫时长（秒）</th>
								</tr>
							</thead>
							<tbody>
								{if !empty($localTop36m)}
                                {foreach $localTop36m as $key=>$vo }
                                    <tr style="background-color:#f9f9f9">
                                        <td class="ct">{$vo->location}</td>
                                        <td class="ct">{$vo->callCnt}</td>
                                        <td class="ct">{$vo->peerNumberCnt}</td>
                                        <td class="ct">{$vo->callTime}</td>
                                        <td class="ct">{$vo->dialCnt}</td>
                                        <td class="ct">{$vo->dialedCnt}</td>
                                        <td class="ct">{$vo->dialTime}</td>
                                        <td class="ct">{$vo->dialedTime}</td>
                                    </tr>
                                {/foreach}
                                {/if}
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>通讯录(<?php if($contacts){ echo count($contacts);}else{echo 0;} ?>个)<input type="hidden" value="<?php if($contacts){ echo count($contacts);}else{echo 0;} ?>" name="contacts"></caption>
					<div id="test">
						{if $contacts}
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<div style="float:left;width:100%;">
                            <div class="m-style box"></div>
						</div>
						{else /}
						暂无数据
						{/if}
					</div>
				</div>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>天镜全息</caption>
	                <?php if($allday['resData']){ ?>
	                    <table class="center">
	                        <caption style="font-weight:700;font-size:14px;">(0-查询命中，其他值表示未命中)</caption>
	                        <tbody style="background:#fff;">
	                            <tr>
	                                <td style="width:25%;padding-left:5%">黑名单</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['blacklistCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">常欠客</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['overdueCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">常欠客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-overdueRes">详情</button>
	                                </td>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大逾期金额</th>
	                                        <th class="ct">历史最长逾期天数</th>
	                                        <th class="ct">逾期最早出现时间</th>
	                                        <th class="ct">逾期最近出现时间</th>
	                                        <th class="ct">历史逾期平台总数</th>
	                                        <th class="ct">今日逾期平台个数</th>
	                                        <th class="ct">近3天逾期平台个数</th>
	                                        <th class="ct">近7天逾期平台个数</th>
	                                        <th class="ct">近15天逾期平台个数</th>
	                                        <th class="ct">近30天逾期平台个数</th>
	                                        <th class="ct">近60天逾期平台个数</th>
	                                        <th class="ct">近90天逾期平台个数</th>
	                                </tr>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueDaysMax']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueEarliestTime']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueLatestTime']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform90Days']}</td>
	                                </tr>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">逾期平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早逾期时间</th>
	                                    <th class="ct" colspan="3">最近逾期时间</th>
	                                </tr>
	                                <foreach name="overduePlatforms" item="vo">
	                                    <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.overdueEarliestTime}</td>
	                                        <td class="ct" colspan="3">{$vo.overdueLatestTime}</td>
	                                    </tr>
	                                </foreach>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">多头客</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['multiRegisterCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">多头客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-multiRegisterRes">详情</button>
	                                </td>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史单日最多注册平台个数</th>
	                                        <th class="ct">注册最早出现时间</th>
	                                        <th class="ct">注册最近出现时间</th>
	                                        <th class="ct">历史注册平台总数</th>
	                                        <th class="ct">今日注册平台个数</th>
	                                        <th class="ct">近3天注册平台个数</th>
	                                        <th class="ct">近7天注册平台个数</th>
	                                        <th class="ct">近15天注册平台个数</th>
	                                        <th class="ct">近30天注册平台个数</th>
	                                        <th class="ct">近60天注册平台个数</th>
	                                        <th class="ct">近90天注册平台个数</th>
	                                </tr>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerInOneDayMax']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform90Days']}</td>
	                                </tr>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">逾期平台编号</th>
	                                    <th class="ct" colspan="5">平台类型</th>
	                                    <th class="ct" colspan="5">注册时间</th>
	                                </tr>
	                                <foreach name="registerPlatforms" item="vo">
	                                    <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="5">{$vo.platformType}</td>
	                                        <td class="ct" colspan="5">{$vo.registerDate}</td>
	                                    </tr>
	                                </foreach>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">通过客</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['creditableCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">通过客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-creditableRes">详情</button>
	                                </td>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大放款金额</th>
	                                        <th class="ct">放款最早出现时间</th>
	                                        <th class="ct">放款最近出现时间</th>
	                                        <th class="ct">历史放款平台总数</th>
	                                        <th class="ct">今日放款平台个数</th>
	                                        <th class="ct">近3天放款平台个数</th>
	                                        <th class="ct">近7天放款平台个数</th>
	                                        <th class="ct">近15天放款平台个数</th>
	                                        <th class="ct">近30天放款平台个数</th>
	                                        <th class="ct">近60天放款平台个数</th>
	                                        <th class="ct">近90天放款平台个数</th>
	                                </tr>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform90Days']}</td>
	                                </tr>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">放款平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早放款时间</th>
	                                    <th class="ct" colspan="3">最近放款时间</th>
	                                </tr>
	                                <foreach name="loanPlatforms" item="vo">
	                                    <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.loanEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.loanLatestDate}</td>
	                                    </tr>
	                                </foreach>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">优良客</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['favourableCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">优良客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-favourableRes">详情</button>
	                                </td>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大还款金额</th>
	                                        <th class="ct">还款最早出现时间</th>
	                                        <th class="ct">还款最近出现时间</th>
	                                        <th class="ct">历史还款平台总数</th>
	                                        <th class="ct">今日还款平台个数</th>
	                                        <th class="ct">近3天还款平台个数</th>
	                                        <th class="ct">近7天还款平台个数</th>
	                                        <th class="ct">近15天还款平台个数</th>
	                                        <th class="ct">近30天还款平台个数</th>
	                                        <th class="ct">近60天还款平台个数</th>
	                                        <th class="ct">近90天还款平台个数</th>
	                                </tr>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform90Days']}</td>
	                                </tr>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">还款平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早还款时间</th>
	                                    <th class="ct" colspan="3">最近还款时间</th>
	                                </tr>
	                                <foreach name="repaymentPlatforms" item="vo">
	                                    <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.repaymentEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.repaymentLatestDate}</td>
	                                    </tr>
	                                </foreach>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">拒贷客</td>
	                                <td style="padding-left:5%;" colspan="11">{$allday['resData']['rejecteeCode']}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">拒贷客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-rejecteeRes">详情</button>
	                                </td>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大拒贷金额</th>
	                                        <th class="ct">拒贷最早出现时间</th>
	                                        <th class="ct">拒贷最近出现时间</th>
	                                        <th class="ct">历史拒贷平台总数</th>
	                                        <th class="ct">今日拒贷平台个数</th>
	                                        <th class="ct">近3天拒贷平台个数</th>
	                                        <th class="ct">近7天拒贷平台个数</th>
	                                        <th class="ct">近15天拒贷平台个数</th>
	                                        <th class="ct">近30天拒贷平台个数</th>
	                                        <th class="ct">近60天拒贷平台个数</th>
	                                        <th class="ct">近90天拒贷平台个数</th>
	                                </tr>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform90Days']}</td>
	                                </tr>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">拒贷平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早拒贷时间</th>
	                                    <th class="ct" colspan="3">最近拒贷时间</th>
	                                </tr>
	                                <foreach name="refusePlatforms" item="vo">
	                                    <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.refuseEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.refuseLatestDate}</td>
	                                    </tr>
	                                </foreach>
	                            </tr>
	                        </tbody>
	                    </table>
	                <?php }else{ ?>
	                <span style="color:#ccc;">暂无数据（可能没有不良信息哦）</span>
	                <?php } ?>
	            </div>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>运营商基础信息</caption>
					<div>
                	<?php if($yysreports==1){ ?>
						<table class="left">
							<tbody>
								<tr>
									<td>授权电话</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->phone}<br>{$userinfo.phone}(系统){if $userinfo.phone==$cellPhone->phone}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.phone!=$cellPhone->phone}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>授权时间</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->regTime}（{$ymd.year}年{$ymd.month}月{$ymd.day}天）<?php } ?></td>
								</tr>
								<tr>
									<td>注册地址</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->liveAddress}<?php } ?></td>
								</tr>
								<tr>
									<td>办理号码身份证姓名</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->name}<br>{$userinfo.name}(系统){if $userinfo.name==$cellPhone->name}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.name!=$cellPhone->name}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>身份证号</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->idNo}<br>{$userinfo.idcard}(系统){if $userinfo.idcard==$cellPhone->idNo}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.idcard!=$cellPhone->idNo}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>账户余额</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->availableBalance/100}<?php } ?>(元)</td>
								</tr>
							</tbody>
						</table>
	                <?php }elseif($yysreports==0){ ?>
	                    <span style="color:#ccc;">暂无数据(可能未授权)</span>
	                <?php } ?>
					</div>
				</div>
				<div class="row cl">
					<caption>个人通讯信息</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">用户姓名</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">手机号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">身份证号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">运营商</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否实名</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码归属地</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">每月平均消费</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">账户余额</th>
							</tr>
						</thead>
						<tbody>
                			<?php if($yysreports==1){ ?>
							<tr>
								<td><?php if($cellPhone){ ?>{$cellPhone->name}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->phone}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->idNo}<?php } ?></td>
								<td></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->reliability}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->attribution}<?php } ?></td>
								<td><?php if($consumptionDetail){ ?>{$consumptionDetail[0]->item->avgItem6m/100}(元)<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->availableBalance/100}<?php } ?>(元)</td>
							</tr>
	                		<?php } ?>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">紧急联系人</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">紧急联系人电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">直系亲属</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">直系亲属电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">同事</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">同事电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友电话</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>{$userinfo.emer_con}</td>
								<td>{$userinfo.emer_con_phone}</td>
								<td>{$userinfo.relatives}</td>
								<td>{$userinfo.relatives_phone}</td>
								<td>{$userinfo.partner}</td>
								<td>{$userinfo.partner_phone}</td>
								<td>{$userinfo.friend}</td>
								<td>{$userinfo.friend_phone}</td>
							</tr>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过紧急联系人</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过直系亲属</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过同事</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过朋友</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">黑名单验证</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被查询次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话风险</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">芝麻信用分</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>{if $userinfo.exit_emer_con==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_relatives==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_partner==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_friend==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $allday['resData']['blacklistCode']==null}未命中{elseif $allday['resData']['blacklistCode']==0}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">命中</span>{/if}</td>
								<td>
									{if $allday['resData']['overdueRes']['overduePlatform90Days']}
									<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">{$allday['resData']['overdueRes']['overduePlatform90Days']}
									</span>{else}0{/if}
								</td>
								<td>
									<?php if(!empty($callRiskAnalysis)){ ?>
		                            	{foreach $callRiskAnalysis as $key=>$value }
		                            		{if $value->point->callTime6m==0}
		                            			<span id="thfx"></span>
		                            		{elseif $value->point->callTime6m>0}
		                            			<input type="hidden" name="thfxe" value="1">
		                            			<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">{$value->desc}
		                            			</span>
		                            		{/if}
		                            	{/foreach}
                            		<?php } ?>
								</td>
								<td>{$userinfo.sesame_score}</td>
							</tr>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">互通电话数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">夜间活动情况(0:00-7:00)</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">短信情况</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">非活跃总天数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">连续3天非活跃次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友圈分布</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">创建时间</th>
							</tr>
						</thead>
						<tbody>
                			<?php if($yysreports==1){ ?>
							<tr>
								<td><?php if($friendCircle){ ?>{$friendCircle->interPeerNum6m}<?php } ?></td>
								<td><?php if($callTimeDetail){ ?>{:round($callTimeDetail[9]->item->avgItem6m/$callTimeDetail[8]->item->avgItem6m,2)}%<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[10]->item->item6m}<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[19]->item->item6m}<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[24]->item->item6m}<?php } ?></td>
								<td><?php if($friendCircle){ ?>{$friendCircle->friendCityCenter6m}<?php } ?></td>
								<td><?php if($contacts){ echo count($contacts);}else{echo 0;} ?></td>
								<td>{:date('Y-m-d H:i:s',$userinfo.yystime)}</td>
							</tr>
	                		<?php } ?>
						</tbody>
						<!-- <thead style="background-color:#f9f9f9;">
							<tr>
								<th colspan="7" class="center" style="font-size:14px;height:30px;font-weight:bolder;">非活跃天数细节</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td colspan="7">2018-09-03</td>
							</tr>
						</tbody> -->
					</table>
				</div>
                <?php if($yysreports==1){ ?>
				<div class="row cl">
					<caption>通话风险分析</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月通话次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月通话时长（秒）</th>
							</tr>
						</thead>
						<tbody>
							<?php if($callRiskAnalysis){ ?>
                            	{foreach $callRiskAnalysis as $key=>$value }
							<tr>
								<td>{$value->desc}</td>
								<td>{$value->point->callCnt6m}</td>
								<td>{$value->point->callTime6m}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>消费详单</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近1月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月平均数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月平均数量</th>
							</tr>
						</thead>
						<tbody>
							<?php if($consumptionDetail){ ?>
                            {foreach $consumptionDetail as $key=>$value }
							<tr>
								<td>{:str_replace('分','元',$value->appPointDesc)}</td>
								<td>{$value->item->item1m/100}</td>
								<td>{$value->item->item3m/100}</td>
								<td>{$value->item->item6m/100}</td>
								<td>{$value->item->avgItem3m/100}</td>
								<td>{$value->item->avgItem6m/100}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>通话时长详单</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近1月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月平均数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月平均数量</th>
							</tr>
						</thead>
						<tbody>
							<?php if($callTimeDetail){ ?>
                            {foreach $callTimeDetail as $key=>$value }
							<tr>
								<td>{$value->appPointDesc}</td>
								<td>{$value->item->item1m}</td>
								<td>{$value->item->item3m}</td>
								<td>{$value->item->item6m}</td>
								<td>{$value->item->avgItem3m}</td>
								<td>{$value->item->avgItem6m}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>通话详单(近6月统计：<?php if($callContactDetail){ echo count($callContactDetail);}else{echo 0;} ?>个)<input type="hidden" value="<?php if($callContactDetail){ echo count($callContactDetail);}else{echo 0;} ?>" name="callContactDetail"></caption>
					<div id="callDetail">
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
									<th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">与联系人关系</th>
									<th width="100" class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系人号码</th>
									<th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码类型</th>
									<th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码标识</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话时长</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫时长</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫时长</th>
	                                <!-- <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">早晨通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">中午通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">下午通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">晚上通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">凌晨通话次数</th> -->
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">工作日通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">周末通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">节假日通话次数</th>
	                                <th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">第一次通话时间</th>
	                                <th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">最后一次通话时间</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<div style="float:left;width:100%;">
                            <div class="m-style cdbox"></div>
						</div>
					</div>
				</div>
	            <?php } ?>
			</div>
		</div>
</div>


<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="/static/js/jquery.pagination.js"></script>
<script type="text/javascript" src="/static/js/boxImg.js"></script>
<script type="text/javascript">
var totals=$("input[name='contacts']").val();
var user_id=$("input[name='user_id']").val();
var total=Math.ceil(totals/30);
var callDetails=$("input[name='callContactDetail']").val();
var callDetail=Math.ceil(callDetails/10);
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('oten')}",
        dataType:"json",
        data : {user_id:user_id},
        success:function(data){
                var otenstr='';
                for (var i = 0; i < 10; i++) {
                	if(data.data[i].txlxm==undefined){
                		otenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialCnt6m+'</td>'+
	                    '<td></td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}else{
	                    otenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data[i].txlxm+'</td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}
                }
                $("#oten tbody").empty();
                $("#oten tbody").append(otenstr);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('eten')}",
        dataType:"json",
        data : {user_id:user_id},
        success:function(data){
                var etenstr='';
                for (var i = 0; i < 10; i++) {
                	if(data.data[i].txlxm==undefined){
	                    etenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialedCnt6m+'</td>'+
	                    '<td></td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}else{
	                    etenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data[i].txlxm+'</td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}
                }
                $("#eten tbody").empty();
                $("#eten tbody").append(etenstr);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('contacts_page')}",
        dataType:"json",
        data : {user_id:user_id,page:1},
        success:function(data){
                var strdataz='';
                var strdatao='';
                var strdatat='';
                if(10<totals){
	                for (var i = 0; i < 10; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }else{
	                for (var i = 0; i < totals; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }
                if(20<totals){
	                for (var j = 10; j < 20; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var j = 10; j < totals; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                if(30<totals){
	                for (var k = 20; k < 30; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var k = 20; k < totals; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                $("#test table:first tbody").empty();
                $("#test table:first tbody").append(strdataz);
                $("#test table").eq(1).find("tbody").empty();
                $("#test table").eq(1).find("tbody").append(strdatao);
                $("#test table:last tbody").empty();
                $("#test table:last tbody").append(strdatat);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('calldetail_page')}",
        dataType:"json",
        data : {user_id:user_id,page:1},
        success:function(data){
                var calldetailstr='';
                if(10<callDetails){
	                for (var i = 0; i < 10; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntMorning6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntAfternoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntEvening6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNight6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '</tr>';
	                }
                }else{
	                for (var i = 0; i < callDetails; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntMorning6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntAfternoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntEvening6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNight6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }
                $("#callDetail table tbody").empty();
                $("#callDetail table tbody").append(calldetailstr);
        }
    });
});
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#tab-system").Huitab({
		index:0
	});
	$("#form-admin-add").validate({
		rules:{
			only:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "{:url('orders_examine')}",
				success: function(data){
					if(data.code==200){
						var index = parent.layer.getFrameIndex(window.name);
						parent.location.reload();
						parent.layer.close(index);
					}else{
						alert('出错')
					}

				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					var index = parent.layer.getFrameIndex(window.name);
					parent.layer.close(index);
				}
			});
		}
	});
});
$(".box").pagination({
    pageCount: total,
    jump: true,
    callback: function (api) {
        $.ajax({
            type : 'get',
            url  :  "{:url('contacts_page')}",
            dataType:"json",
            data : {user_id:user_id,page:api.getCurrent()},
            success:function(data){
                var strdataz='';
                var strdatao='';
                var strdatat='';
                if(api.getCurrent()*30-20<totals){
	                for (var i = api.getCurrent()*30-30; i < api.getCurrent()*30-20; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }else{
	                for (var i = api.getCurrent()*30-30; i < totals; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }
                if(api.getCurrent()*30-10<totals){
	                for (var j = api.getCurrent()*30-20; j < api.getCurrent()*30-10; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var j = api.getCurrent()*30-20; j < totals; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                if(api.getCurrent()*30<totals){
	                for (var k = api.getCurrent()*30-10; k < api.getCurrent()*30; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var k = api.getCurrent()*30-10; k < totals; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                $("#test table:first tbody").empty();
                $("#test table:first tbody").append(strdataz);
                $("#test table").eq(1).find("tbody").empty();
                $("#test table").eq(1).find("tbody").append(strdatao);
                $("#test table:last tbody").empty();
                $("#test table:last tbody").append(strdatat);
            }
        })
    }
});
$(".cdbox").pagination({
    pageCount: callDetail,
    jump: true,
    callback: function (api) {
        $.ajax({
            type : 'get',
            url  :  "{:url('calldetail_page')}",
            dataType:"json",
            data : {user_id:user_id,page:api.getCurrent()},
            success:function(data){
                var calldetailstr='';
                if(api.getCurrent()*10<callDetails){
	                for (var i = api.getCurrent()*10-10; i < api.getCurrent()*10; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntMorning6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntAfternoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntEvening6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNight6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }else{
	                for (var i = api.getCurrent()*10-10; i < callDetails; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntMorning6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntAfternoon6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntEvening6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntNight6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }
                $("#callDetail table tbody").empty();
                $("#callDetail table tbody").append(calldetailstr);
            }
        })
    }
});
$(".b-multiRegisterRes").click(function(){
      $(".multiRegisterRes").fadeToggle(500)
});
$(".b-overdueRes").click(function(){
      $(".overdueRes").fadeToggle(500)
});
$(".b-creditableRes").click(function(){
      $(".creditableRes").fadeToggle(500)
});
$(".b-favourableRes").click(function(){
      $(".favourableRes").fadeToggle(500)
});
$(".b-rejecteeRes").click(function(){
      $(".rejecteeRes").fadeToggle(500)
});
$(document).ready(function(){
	$('.sxf').on('input propertychange', function(){
	      	let bfb =  $('.sxf').val()
	      	let zped = $('.tmdmoney').val()
	      	let zh = zped - bfb * 0.01 * zped
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
	});
    $('.tmdmoney').on('input propertychange', function(){
       	    let bfb =  $('.sxf').val()
	      	let zped = $('.tmdmoney').val()
	      	let zh = zped - bfb * 0.01 * zped
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
    });
    $('#reset').on('click', function(){
	      	let zped = $('input[name=money]').val()
	      	let zh =parseInt(0.68* zped)
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
    });
    var thfxe=$("input[name=thfxe]").val();
    if(thfxe==1){
    	console.log(thfxe);
    }else{
	    $('#thfx').html('无');
    }
});
</script>
</body>
</html>